﻿using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Text;

namespace WebSpiderLib
{
    interface IWebClient
    {
        // Methods
        byte[] GetBinaryData(string address);
        string GetWebPageContent(string address, bool replaceHtmlCode, bool throwWebException);
        string GetWebPageContent(string address, bool replaceHtmlCode, bool throwWebException, Encoding encoding);
        string GetWebPageContent(string address, bool replaceHtmlCode, bool throwWebException, Encoding encoding, string referer);
        string PostData(string address, NameValueCollection inputValues, bool replachHtmlCode);
        string PostData(string address, NameValueCollection inputValues, bool replachHtmlCode, Encoding encoding);
    }
}
